<?php
return array(
	'defaultScope' => array(
		'condition' => "object_type ='DealerAccount'"
	),

	'behaviors' => array(
		'stateHandle' => array(
			'class' => 'ModelState',
			'handleField' => 'status',
			'configName' => 'status.worker.audit',
			'configReader' => Yii::app()->config,
			'initState' => 'ST_NONE',
		),
        'related'=>array(
			'class'=>'coms.behaviors.AgentRelatedBehavior',
			'role'=>AdminUser::ROLE_PROVIDER,
			'field'=>'provider_id',
		),
	),
	'relations' => array(
		'aRelateds' => array(ActiveRecord::HAS_MANY, 'AgentRelated','dealer_id'),
	),

	'_import' => array(
		array('*', 'models.WorkerAccount//*'),
	),
);